﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardsServer
{
    public static class my
    {
        public static string CorName = CardsServer.Tools.MyConfig.getAppValue("CorName");
        public static string AppName = CardsServer.Tools.MyConfig.getAppValue("AppName");
        public static string ServiceName = string.Format("{0}{1}服务程序", my.CorName,CardsServer.my.AppName);
        private static WCF.Server bwserver;
        public static WCF.Server server
        {
            get
            {


                if (bwserver == null)
                {
                    InitServer();
                }


                return my.bwserver;

            }

        }

        public static void InitServer()
        {
            if (bwserver == null)
            {
                bwserver = new WCF.Server();
            }
        }

    }
}
